Fix iptable handling when multiple addresses have been specified.
authorEwan Mellor <ewan@xensource.com>
Tue, 21 Nov 2006 15:03:09 +0000 (15:03 +0000)
committerEwan Mellor <ewan@xensource.com>
Tue, 21 Nov 2006 15:03:09 +0000 (15:03 +0000)
From Adrian Chadd <adrian@creative.net.au>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/examples/vif-common.sh

index 8dc6d86ac2ceb9de8d89ad3b76772fd0e32afbad..50da9a4494a2db2f5623a746775e32758e4339f4 100644 (file)
@@ -103,7 +103,7 @@ function handle_iptable()
   if [ "$ip" != "" ]
   then
       local addr
-      for addr in "$ip"
+      for addr in $ip
       do
         frob_iptable -s "$addr"
       done